package com.jumi.microservice.entity;

    import com.baomidou.mybatisplus.annotation.IdType;
    import com.baomidou.mybatisplus.annotation.TableId;
    import java.time.LocalDateTime;
    import java.io.Serializable;
    import io.swagger.annotations.ApiModel;
    import io.swagger.annotations.ApiModelProperty;

/**
* <p>
    * 
    * </p>
*
* @author 要挑客户管理团队
* @since 2020-09-18
*/
    @ApiModel(value="JmMessage对象", description="")
    public class JmMessage implements Serializable {

    private static final long serialVersionUID = 1L;

            @ApiModelProperty(value = "短消息索引id")
            @TableId(value = "message_id", type = IdType.AUTO)
    private Integer messageId;

            @ApiModelProperty(value = "回复短消息message_id")
    private Integer messageParentId;

            @ApiModelProperty(value = "短消息发送人")
    private Integer fromUserId;

            @ApiModelProperty(value = "短消息接收人")
    private Integer toUserId;

            @ApiModelProperty(value = "短消息标题")
    private String messageTitle;

            @ApiModelProperty(value = "短消息内容")
    private String messageBody;

            @ApiModelProperty(value = "短消息发送时间")
    private LocalDateTime messageTime;

            @ApiModelProperty(value = "短消息回复更新时间")
    private LocalDateTime messageUpdateTime;

            @ApiModelProperty(value = "短消息打开状态")
    private Boolean messageOpen;

            @ApiModelProperty(value = "短消息状态，0为正常状态，1为发送人删除状态，2为接收人删除状态")
    private Boolean messageState;

            @ApiModelProperty(value = "0为私信、1为系统消息、2为留言")
    private Boolean messageType;

            @ApiModelProperty(value = "已经读过该消息的会员id")
    private Integer readUserId;

            @ApiModelProperty(value = "已经删除该消息的会员id")
    private String delUserId;

            @ApiModelProperty(value = "站内信是否为一条发给多个用户 0为否 1为多条 ")
    private Boolean messageIsmore;

            @ApiModelProperty(value = "发信息人用户名")
    private String fromUserName;

            @ApiModelProperty(value = "接收人用户名")
    private String toUserName;

            @ApiModelProperty(value = "1代表发货提醒 2代表付款成功 3代表余额变动 4代表退款退货")
    private Integer systemType;

            @ApiModelProperty(value = "跳转地址")
    private String link;

        public Integer getMessageId() {
        return messageId;
        }

            public void setMessageId(Integer messageId) {
        this.messageId = messageId;
        }
        public Integer getMessageParentId() {
        return messageParentId;
        }

            public void setMessageParentId(Integer messageParentId) {
        this.messageParentId = messageParentId;
        }
        public Integer getFromUserId() {
        return fromUserId;
        }

            public void setFromUserId(Integer fromUserId) {
        this.fromUserId = fromUserId;
        }
        public Integer getToUserId() {
        return toUserId;
        }

            public void setToUserId(Integer toUserId) {
        this.toUserId = toUserId;
        }
        public String getMessageTitle() {
        return messageTitle;
        }

            public void setMessageTitle(String messageTitle) {
        this.messageTitle = messageTitle;
        }
        public String getMessageBody() {
        return messageBody;
        }

            public void setMessageBody(String messageBody) {
        this.messageBody = messageBody;
        }
        public LocalDateTime getMessageTime() {
        return messageTime;
        }

            public void setMessageTime(LocalDateTime messageTime) {
        this.messageTime = messageTime;
        }
        public LocalDateTime getMessageUpdateTime() {
        return messageUpdateTime;
        }

            public void setMessageUpdateTime(LocalDateTime messageUpdateTime) {
        this.messageUpdateTime = messageUpdateTime;
        }
        public Boolean getMessageOpen() {
        return messageOpen;
        }

            public void setMessageOpen(Boolean messageOpen) {
        this.messageOpen = messageOpen;
        }
        public Boolean getMessageState() {
        return messageState;
        }

            public void setMessageState(Boolean messageState) {
        this.messageState = messageState;
        }
        public Boolean getMessageType() {
        return messageType;
        }

            public void setMessageType(Boolean messageType) {
        this.messageType = messageType;
        }
        public Integer getReadUserId() {
        return readUserId;
        }

            public void setReadUserId(Integer readUserId) {
        this.readUserId = readUserId;
        }
        public String getDelUserId() {
        return delUserId;
        }

            public void setDelUserId(String delUserId) {
        this.delUserId = delUserId;
        }
        public Boolean getMessageIsmore() {
        return messageIsmore;
        }

            public void setMessageIsmore(Boolean messageIsmore) {
        this.messageIsmore = messageIsmore;
        }
        public String getFromUserName() {
        return fromUserName;
        }

            public void setFromUserName(String fromUserName) {
        this.fromUserName = fromUserName;
        }
        public String getToUserName() {
        return toUserName;
        }

            public void setToUserName(String toUserName) {
        this.toUserName = toUserName;
        }
        public Integer getSystemType() {
        return systemType;
        }

            public void setSystemType(Integer systemType) {
        this.systemType = systemType;
        }
        public String getLink() {
        return link;
        }

            public void setLink(String link) {
        this.link = link;
        }

    @Override
    public String toString() {
    return "JmMessage{" +
            "messageId=" + messageId +
            ", messageParentId=" + messageParentId +
            ", fromUserId=" + fromUserId +
            ", toUserId=" + toUserId +
            ", messageTitle=" + messageTitle +
            ", messageBody=" + messageBody +
            ", messageTime=" + messageTime +
            ", messageUpdateTime=" + messageUpdateTime +
            ", messageOpen=" + messageOpen +
            ", messageState=" + messageState +
            ", messageType=" + messageType +
            ", readUserId=" + readUserId +
            ", delUserId=" + delUserId +
            ", messageIsmore=" + messageIsmore +
            ", fromUserName=" + fromUserName +
            ", toUserName=" + toUserName +
            ", systemType=" + systemType +
            ", link=" + link +
    "}";
    }
}
